libglnx porting: delete temp files on failure of file creation
authorYu Qi Zhang <jzehrarnyg@gmail.com>
Thu, 16 Jun 2016 18:51:10 +0000 (18:51 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 16 Jun 2016 19:18:47 +0000 (19:18 +0000)
commit30c34b2f55e9d301fcc1bd719b59112d8f8ed654
tree20e59b596757b3c1b8546f1f662f69533cdbf411
parentab47a8a0306d79fd13d618fd13c26b3134053011
libglnx porting: delete temp files on failure of file creation

We noticed the temp files being left over in ostree when (mistakenly)
trying to create refs with names in use by folders. This fix removes
temp files created by glnx_file_replace_contents_at on failure.

Closes: #348
Approved by: cgwalters
libglnx